package com.example.conusmer.service.impl

import com.example.common.service.RemarkDubboService
import com.example.common.service.UserDubboService
import com.example.conusmer.service.RemarkService
import org.apache.dubbo.config.annotation.DubboReference
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.data.redis.core.StringRedisTemplate
import org.springframework.stereotype.Service

@Service
class RemarkServiceImpl : RemarkService {
    @DubboReference()
    lateinit var remarkService: RemarkDubboService

    override fun saveToRedis(key: String, value: String) {
        remarkService.saveToRedis(key, value)
    }

    override fun findFromRedis(key: String): String? {
        return remarkService.findFromRedis(key)
    }

    override fun deleteFromRedis(key: String) {
        remarkService.deleteFromRedis(key)
    }
}
